package cn.wolfcode.wolfcodemall.mapper;

import cn.wolfcode.wolfcodemall.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(String user);

    int insert(User record);

    User selectByPrimaryKey(Integer user1);

    List<User> selectAll();

    List<User> selectAll(@Param("name") String name);

    int updateByPrimaryKey(User record);

    //登录
    User login(@Param("username") String username, @Param("password") String password);

    //详情
    User selectByUserId (@Param("user") Integer user);

//    int uaDate(User user);
}